home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / master / Examples / Count / count.c next >
C/C++ Source or Header  |  1994-02-01  |  217b  |  22 lines

  1.  
  2. /*
  3.  *  COUNT.C
  4.  */
  5.  
  6. #include <stdio.h>
  7.  
  8. main(ac, av)
  9. char *av[];
  10. {
  11.     long i;
  12.  
  13.     if (ac == 1) {
  14.     puts("count <startvalue>");
  15.     exit(1);
  16.     }
  17.     for (i = atoi(av[1]); i; --i)
  18.     printf("%d\n", i);
  19.     return(0);
  20. }
  21.  
  22.